<?php
	require_once ($_SERVER['DOCUMENT_ROOT']. "/_config/config.php");
	require_once (MODEL_DIR."/type_model.php");
	require_once (MODEL_DIR."/product_model.php");
	require_once (HELPER_DIR."/helper.php");
	
	//Load model
	//Xu ly
	$sitemapType = $_GET['type'];
	
	$type_arr = GetTypeList();
	$product_arr = GetProductById(-1);
	
	//render
	if($sitemapType == 'xml')
		require_once('sitemap_xml_view.phtml');
	
	if($sitemapType == 'html')
		require_once('sitemap_html_view.phtml');
	
?>